package com.greetings;

import java.net.URI;

public class CustomHttpClient {
    public void demo1(){
        // change liberary to jdk11
//        HttpRequest request = HttpRequest.newBuilder()
//                .uri(new URI("https://postman-echo.com/get"))
//                .GET()
//                .build();
//
//        HttpResponse<String> response = HttpClient.newHttpClient()
//                .send(request, HttpResponse.BodyHandler.asString());
    }
}
